import request from '@/utils/request'

// 查询纸包机操作记录列表
export function listPaperpack(query) {
  return request({
    url: '/productionProcess/paperpack/list',
    method: 'get',
    params: query
  })
}

// 查询纸包机操作记录详细
export function getPaperpack(id) {
  return request({
    url: '/productionProcess/paperpack/' + id,
    method: 'get'
  })
}

// 新增纸包机操作记录
export function addPaperpack(data) {
  return request({
    url: '/productionProcess/paperpack',
    method: 'post',
    data: data
  })
}

// 修改纸包机操作记录
export function updatePaperpack(data) {
  return request({
    url: '/productionProcess/paperpack',
    method: 'put',
    data: data
  })
}
// 修改纸包机操作记录
export function checkPaperpack(data) {
  return request({
    url: '/productionProcess/paperpack/check',
    method: 'put',
    data: data
  })
}
// 删除纸包机操作记录
export function delPaperpack(id) {
  return request({
    url: '/productionProcess/paperpack/' + id,
    method: 'delete'
  })
}


// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport/getZBJ',
    method: 'get',
    params: query
  })
}
